using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._BusinessAnalystTools._TargetMarketing
{
    /// <summary>
    /// <para>Import Segmentation Profile</para>
    /// <para>Generates a segmentation profile from a table.</para>
    /// <para>从表生成分段配置文件。</para>
    /// </summary>    
    [DisplayName("Import Segmentation Profile")]
    public class ImportSegmentationProfile : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ImportSegmentationProfile()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_table">
        /// <para>Input Table</para>
        /// <para>The input table with segmentation information.</para>
        /// <para>包含分段信息的输入表。</para>
        /// </param>
        /// <param name="_segmentation_base">
        /// <para>Segmentation Base</para>
        /// <para>The segmentation base for the profile being created. Available options are provided by the segmentation dataset in use.</para>
        /// <para>要创建的配置文件的分段基础。可用选项由正在使用的分段数据集提供。</para>
        /// </param>
        /// <param name="_out_profile">
        /// <para>Output Profile</para>
        /// <para>The name of the segmentation file to be created.</para>
        /// <para>要创建的分段文件的名称。</para>
        /// </param>
        /// <param name="_segment_id_field">
        /// <para>Segment ID Field</para>
        /// <para>A string field that contains the segmentation code.</para>
        /// <para>包含分段代码的字符串字段。</para>
        /// </param>
        /// <param name="_count_field">
        /// <para>Count Field</para>
        /// <para>A numeric field that contains segment count information.</para>
        /// <para>包含区段计数信息的数值字段。</para>
        /// </param>
        public ImportSegmentationProfile(object _in_table, object _segmentation_base, object _out_profile, object _segment_id_field, object _count_field)
        {
            this._in_table = _in_table;
            this._segmentation_base = _segmentation_base;
            this._out_profile = _out_profile;
            this._segment_id_field = _segment_id_field;
            this._count_field = _count_field;
        }
        public override string ToolboxName => "Business Analyst Tools";

        public override string ToolName => "Import Segmentation Profile";

        public override string CallName => "ba.ImportSegmentationProfile";

        public override List<string> AcceptEnvironments => ["baDataSource", "workspace"];

        public override object[] ParameterInfo => [_in_table, _segmentation_base, _out_profile, _segment_id_field, _count_field, _total_volume_field];

        /// <summary>
        /// <para>Input Table</para>
        /// <para>The input table with segmentation information.</para>
        /// <para>包含分段信息的输入表。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Table")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_table { get; set; }


        /// <summary>
        /// <para>Segmentation Base</para>
        /// <para>The segmentation base for the profile being created. Available options are provided by the segmentation dataset in use.</para>
        /// <para>要创建的配置文件的分段基础。可用选项由正在使用的分段数据集提供。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Segmentation Base")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _segmentation_base { get; set; }


        /// <summary>
        /// <para>Output Profile</para>
        /// <para>The name of the segmentation file to be created.</para>
        /// <para>要创建的分段文件的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Profile")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_profile { get; set; }


        /// <summary>
        /// <para>Segment ID Field</para>
        /// <para>A string field that contains the segmentation code.</para>
        /// <para>包含分段代码的字符串字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Segment ID Field")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _segment_id_field { get; set; }


        /// <summary>
        /// <para>Count Field</para>
        /// <para>A numeric field that contains segment count information.</para>
        /// <para>包含区段计数信息的数值字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Count Field")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _count_field { get; set; }


        /// <summary>
        /// <para>Total Volume Field</para>
        /// <para>A numeric field that contains volume information.</para>
        /// <para>包含卷信息的数值字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Total Volume Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _total_volume_field { get; set; } = null;


        public ImportSegmentationProfile SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}